# from comm.action import *
# from appium.webdriver.common.appiumby import *
# from selenium.webdriver.support.wait import *
# from selenium.webdriver.support import expected_conditions as  ec
# from comm.tools import *
# dr=CommonDriver.get_driver()
# try:
#     el=WebDriverWait(dr,20).until(ec.visibility_of_element_located((AppiumBy.ID, "com.dangdang.buy2:id/tv_sure124")))
#     el.click()
# except BaseException as e:
#     print(e)
# finally:
#     print(f'当前时间:{sys_time()}')

def bubble_sort(arr):
    n = len(arr)
    for i in range(n - 1):
        for j in range(n - i - 1):
            if arr[j] > arr[j + 1]:
                arr[j], arr[j + 1] = arr[j + 1], arr[j]

if __name__ == "__main__":
    # 示例1：整数排序
    numbers = [64, 34, 25, 12, 22, 11, 90]
    print("排序前的整数数组:", numbers)
    bubble_sort(numbers)
    print("排序后的整数数组:", numbers)